/*
 * @(#)XfsimWindowListener.java        1.0 2000/05/09
 *
 * This file is part of Xfuzzy 3.0, a design environment for fuzzy logic
 * based systems.
 *
 * (c) 2000 IMSE-CNM. The authors may be contacted by the email address:
 *                    xfuzzy-team@imse.cnm.es
 *
 * Xfuzzy is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation.
 *
 * Xfuzzy is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

package xfuzzy.xfsim.view.listener;

import xfuzzy.xfsim.view.IXfsimFrame;

import java.awt.event.*;


/**
 * Herramienta de ajuste param�trico
 * 
 * @author Francisco Jos� Moreno Velo
 *
 */
public class XfsimWindowListener implements WindowListener {

	//----------------------------------------------------------------------------//
	//                            COSTANTES PRIVADAS                              //
	//----------------------------------------------------------------------------//

	/**
	 * C�digo asociado a la clase serializable
	 */
	@SuppressWarnings("unused")
	private static final long serialVersionUID = 95505666603063L;

	//----------------------------------------------------------------------------//
	//                            MIEMBROS PRIVADOS                               //
	//----------------------------------------------------------------------------//

	/**
	 * Ventana
	 */
	private IXfsimFrame frame;

	//----------------------------------------------------------------------------//
	//                                CONSTRUCTOR                                 //
	//----------------------------------------------------------------------------//

	/**
	 * Constructor
	 */
	public XfsimWindowListener(IXfsimFrame frame) {
		this.frame = frame;
	}

	//----------------------------------------------------------------------------//
	//                             M�TODOS P�BLICOS                               //
	//----------------------------------------------------------------------------//

	/**
	 * Interfaz WindowListener
	 */
	public void windowOpened(WindowEvent e) {
	}
	
	/**
	 * Interfaz WindowListener
	 */
	public void windowClosed(WindowEvent e) {
		
	}
	
	/**
	 * Interfaz WindowListener 
	 */
	public void windowClosing(WindowEvent e) { 
		frame.close(); 
	}
	
	/**
	 * Interfaz WindowListener
	 */
	public void windowIconified(WindowEvent e) {
	}
	
	/**
	 * Interfaz WindowListener
	 */
	public void windowDeiconified(WindowEvent e) {
	}
	
	/**
	 * Interfaz WindowListener
	 */
	public void windowActivated(WindowEvent e) {
	}
	
	/**
	 * Interfaz WindowListener
	 */
	public void windowDeactivated(WindowEvent e) {
	}
}
